{% extends "adminbase.html" %}
{% block scripts %}
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}profile/css/autoSuggest.css" />
	
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}profile/css/ie6.css" /><![endif]-->

    <script language="javascript" src="{{ STATIC_URL }}profile/js/jquery-1.7.1.js"></script>
    <script language="javascript" src="{{ STATIC_URL }}profile/js/jquery.autoSuggest.packed.js"></script>
{% if can_be_added %}
	<script>
	
	$(document).ready(function() {
		var data = {items: {{ can_be_added|safe }} };
		$("input[id=add]").autoSuggest(data.items, {selectedItemProp: "name", searchObjProps: "name", asHtmlID: "add", startText: "Enter Usernames Here"});
		
	}); 
	</script>
{% endif %}

{% if can_be_removed %}
	<script>
	
	$(document).ready(function() {
		var data = {items: {{ can_be_removed|safe }} };
		$("input[id=remove]").autoSuggest(data.items, {selectedItemProp: "name", searchObjProps: "name", asHtmlID: "remove", startText: "Enter Usernames Here"});
		
	});   
	</script>
{% endif %}
{% endblock %}

{% block content %}
<h1>Current Hall Of Fame</h1>

{% if teachers %}
	<b>TEACHERS</b><br/><br/>
	{% for teacher in teachers %}
		{{ teacher.abstract_user.user.username }}<br/>
		{% if teacher.teaches %}
			Teaches: {{ teacher.teaches }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}

{% if institutes %}
	<b>INSTITUTE</b><br/><br/>
	{% for institute in institutes %}
		{{ institute.abstract_user.user.username }}<br/>
		{% if institue.about %}
			About: {{ institute.about }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}

{% if students %}
	<b>STUDENTS</b><br/><br/>
	{% for student in students %}
		{{ student.abstract_user.user.username }}<br/>
		{% if student.jamming_style %}
			Jamming Style: {{ student.jamming_style }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}
<br/><br/><br/>
<h1>Update Hall Of Fame</h1>


<form name="thread" action="/admins/modifyHOF/" method="post">{% csrf_token %}
	{% if can_be_added %}
		Add users to Hall Of Fame<br/><br/>
		<input id="add" type="text" /><br/><br/>
	{% endif %}
	
	{% if can_be_removed %}
		Remove users from Hall Of Fame<br/><br/>
		<input id="remove" type="text" /><br/><br/>
	{% endif %}

	<input id="search_btn" type="submit" value="Update"/>
</form>
{% endblock %}
